﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Configuration;

namespace DiplomaWeb.Configuration
{
    public class AppSettings
    {
        public AppSettings(System.Configuration.Configuration webConfig)
        {
            VerifyStep = Boolean.Parse(webConfig.AppSettings.Settings["VerifyStep"].Value);
            TestLogOnEmail = webConfig.AppSettings.Settings["TestLogOnEmail"].Value;
            UseTestEmail = Boolean.Parse(webConfig.AppSettings.Settings["UseTestEmail"].Value);
            OrderPracticePath = webConfig.AppSettings.Settings["OrderPracticePath"].Value;
            OrderDiplimPath = webConfig.AppSettings.Settings["OrderDiplimPath"].Value;

            OrderPracticeContentPath = webConfig.AppSettings.Settings["OrderPracticeContentPath"].Value;
            OrderDiplimContentPath = webConfig.AppSettings.Settings["OrderDiplimContentPath"].Value;
            CollaborationRoomsContentPath = webConfig.AppSettings.Settings["CollaborationRoomsContentPath"].Value;

            CanUpdatePasswords = Boolean.Parse(webConfig.AppSettings.Settings["CanUpdatePasswords"].Value);
        }

        public bool VerifyStep { get; private set; }
        public string TestLogOnEmail { get; private set; }
        public bool UseTestEmail { get; private set; }
        public string OrderPracticePath { get; private set; }
        public string OrderDiplimPath { get; private set; }

        public string OrderPracticeContentPath { get; private set; }
        public string OrderDiplimContentPath { get; private set; }
        public string CollaborationRoomsContentPath { get; private set; }

        public bool CanUpdatePasswords;
    }
}